﻿#region "<---- Using Definitions ---->"

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Logging;

#endregion

#region "<---- Namespace Definition ---->"

namespace CXMLStudioIDE.Common
{

    #region "<---- Logger Class ---->"

    /// <summary> 
    /// Helper class used for accessing the EnterpriseLibrary Logging feature 
    /// </summary> 
    //public class Logger
    //{
    //    public Logger()
    //    {
    //    }

    //    private enum LogCategory
    //    {
    //        UICategory,
    //        DACategory,
    //        BLCategory
    //    }

    //    private static void Write(string message, LogCategory catgory, string title, IDictionary<string, object> additionalInfo)
    //    {
    //        LogEntry logEntry = new LogEntry();
    //        logEntry.Message = message;
    //        logEntry.Title = title;
    //        if (additionalInfo != null)
    //        {
    //            logEntry.ExtendedProperties = additionalInfo;
    //        }
    //        logEntry.Categories.Add(catgory.ToString());

    //        Logger.Write(logEntry);



    //        //Dim logMessage As String = "Simulated troubleshooting message for Logging QuickStart. " & _
    //        //  "Current activity=""" & Trace.CorrelationManager.ActivityId.ToString() & """"""

    //        //Dim logEntry As New LogEntry()

    //        //logEntry.Categories.Clear()
    //        //logEntry.Categories.Add("Troubleshooting")
    //        //logEntry.Priority = 5
    //        //logEntry.Severity = TraceEventType.Information
    //        //logEntry.Severity = TraceEventType.Error
    //        //logEntry.Message = logMessage

    //        //Logger.Write(logEntry)


    //    }


    //    public static void WriteUILog(string message, string title, IDictionary<string, object> additionalInfo)
    //    {
    //        // Events from UI can be logges here 
    //        // WriteUILog 
    //        Write(message, LogCategory.UICategory, title, additionalInfo);
    //    }

    //    public static void WriteBLLog(string message, string title, IDictionary<string, object> additionalInfo)
    //    {
    //        // Events from UI can be logges here 
    //        Write(message, LogCategory.BLCategory, title, additionalInfo);
    //    }

    //    public static void WriteDALog(string message, string title, IDictionary<string, object> additionalInfo)
    //    {
    //        // Events from UI can be logges here 
    //        Write(message, LogCategory.DACategory, title, additionalInfo);
    //    }
    //}

    #endregion

}

#endregion



